import request from '@/config/axios'

//获取权限菜单
export const getMenuListApi = (params) => {
  return request.get({ url: '/menu/role-menu',params })
}


//获取所有菜单
export const getMenuList = () => {
  return request.get({ url: '/menu/index' })
}


//新增菜单
export const menuTreeInsert = (data) => {
  return request.post({ url: '/menu/add', data })
}


//获取树形菜单
export const menuTreeData = (params) => {
  return request.get({ url: '/menu/menu-tree', params })
}


//修改菜单
export const menuTreeUpdate = (data) => {
  return request.post({ url: '/menu/update', data })
}

//删除菜单
export const menuTreeDel = (params) => {
  return request.get({ url: '/menu/del', params })
}
